package com.ny.demo512;
import java.io.*;
public class TestFils {
    public void saveFileData(String fileName, String data) throws IOException {

        FileWriter fileWriter = new FileWriter(fileName);

        BufferedWriter bufferedWriter = new BufferedWriter(fileWriter);

        bufferedWriter.write(data);

        bufferedWriter.close();
    }

}
